// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_atom;

import com.nnee.p_c.cls_d;
import com.nnee.p_f.cls_b;
import java.text.DateFormat;
import java.util.*;

// Referenced classes of package com.nnee.p_pr.p_atom:
//            i

public class cls_PRISNotification extends cls_b
{

    public cls_PRISNotification()
    {
        super("pris:notification");
    }

    static Date h(String s)
    {
        return i(s);
    }

    private static Date i(String s)
    {
        if(s == null) goto _L2; else goto _L1
_L1:
        Date date1 = d.a().parse(s);
        Date date = date1;
_L4:
        return date;
        Exception exception;
        exception;
_L2:
        date = null;
        if(true) goto _L4; else goto _L3
_L3:
    }

    public List a()
    {
        return a;
    }

    public void a(i j)
    {
        if(j != null)
        {
            if(a == null)
                a = new LinkedList();
            a.add(j);
        }
    }

    public List b()
    {
        return b;
    }

    public Date c()
    {
        return c;
    }

    public void r()
    {
        cls_b b1 = c("pris:app_recommend");
        if(b1 != null)
        {
            List list1 = b1.d("pris:app");
            if(list1 != null)
            {
                a = new LinkedList();
                i j;
                for(Iterator iterator1 = list1.iterator(); iterator1.hasNext(); a.add(j))
                {
                    cls_b b4 = (cls_b)iterator1.next();
                    j = new cls_i();
                    j.a(b4);
                }

            }
        }
        cls_b b2 = c("pris:messages");
        if(b2 != null)
        {
            c = i(b2.a("updated"));
            List list = b2.d("pris:message");
            if(list != null)
            {
                b = new LinkedList();
                PrisMessage prismessage;
                for(Iterator iterator = list.iterator(); iterator.hasNext(); b.add(prismessage))
                {
                    cls_b b3 = (cls_b)iterator.next();
                    prismessage = new PrisMessage();
                    prismessage.a(b3);
                }

            }
        }
    }

    List a;
    List b;
    Date c;

    public class cls_PrisMessage
        implements Parcelable
    {

        private String a(String s)
        {
            String s1;
            if(a != null)
                s1 = a.a(s);
            else
                s1 = null;
            return s1;
        }

        public String a()
        {
            return a("title");
        }

        protected void a(cls_b b1)
        {
            a = b1;
        }

        public String b()
        {
            String s = null;
            if(a != null)
                s = a.A();
            if(s == null)
                s = "";
            return s;
        }

        public String c()
        {
            String s = a("summary");
            if(s == null)
                s = "";
            return s;
        }

        public String d()
        {
            return a("href");
        }

        public int describeContents()
        {
            return 0;
        }

        public boolean e()
        {
            String s = a("type");
            boolean flag;
            if(s == null || "text".equals(s))
                flag = true;
            else
                flag = false;
            return flag;
        }

        public Date f()
        {
            return PRISNotification.h(a("updated"));
        }

        public String g()
        {
            return a("updated");
        }

        public void writeToParcel(Parcel parcel, int j)
        {
            if(a == null)
            {
                parcel.writeByte((byte)0);
            } else
            {
                parcel.writeByte((byte)1);
                parcel.writeString(a());
                parcel.writeString(d());
                parcel.writeString(a("type"));
                parcel.writeString(g());
                parcel.writeString(b());
            }
        }

        public static final android.os.Parcelable.Creator CREATOR = new cls_e();
        b a;


        public PrisMessage()
        {
        }

        public PrisMessage(Parcel parcel)
        {
            if(parcel.readByte() != 0)
            {
                a = new cls_b("pris:message");
                a.b("title", parcel.readString());
                a.b("href", parcel.readString());
                a.b("type", parcel.readString());
                a.b("updated", parcel.readString());
                a.g(parcel.readString());
            }
        }
    }

}
